<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>用户列表</h1>
<a th:href="@{/teas/add}">添加</a>
<table>
    <tr>
        <td>id</td>
        <td>majorid</td>
        <td>tname</td>
        <td>hiredate</td>
        <td>tsex</td>
        <td>操作</td>
    </tr>

    <tr th:each="tea:${teaList}">
        <td th:text="${tea.tid}">tid</td>
        <td th:text="${tea.majorid}">majorid</td>
        <td th:text="${tea.tname}">tname</td>
        <td th:text="${#dates.format(tea.hiredate,'yyyy-MM-dd')}">hiredate</td>
        <td th:text="${tea.tsex}">tsex</td>
        <td>
            <a th:href="@{/teas/del/{tid}(tid=${tea.tid})}">删除</a>
            <a th:href="@{/teas/update/{tid}(tid=${tea.tid})}">修改</a>
        </td>
    </tr>
</table>
</body>
</html>